/*@ File Name : tiledsprite.h
  @ Date : 18/11/2011
  @ Author : Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

Fireworks simulation projet
Copyright (C) 2011 Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

You can contact us by sending mail at fireworks-simulation-project@googlecode.com*/

#if !defined(_TILEDSPRITE_H)
#define _TILEDSPRITE_H

#include "sprite.h"
#include "color.h"
#include "vector3.h"

#ifdef _WIN32
	#include <Windows.h>
#endif

#include <GL/gl.h>

struct s_TiledSprite {
	unsigned int textureId;
	int width;
	int height;
	int tileWidth;
	int tileHeight;
} typedef TiledSprite;

void TiledSprite_Init (TiledSprite* tiledSprite, const char filename[],int width,int height,int tileWidth,int tileHeight);
void TiledSprite_Destroy(TiledSprite* tiledSprite);
void TiledSprite_GetSprite (const TiledSprite* tiledSprite, Sprite* sprite, const Vector3f* position, const Color* color, float theta, float phi, int index);
void TiledSprite_Destroy(TiledSprite* tiledSprite);

#endif  /*_TILEDSPRITE_H*/